package com.sc.nft.mapper;

import com.sc.nft.entity.UserMerchantPledgeTaskDetailsRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.merchantPledgeTask.MerchantPledgeCollectionRewardsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户商户质押收益记录详情表(sc_user_merchant_pledge_task_details_records)数据Mapper
 *
 * @author Sun
 * @since 2023-08-24 16:16:49
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface UserMerchantPledgeTaskDetailsRecordsMapper extends BaseMapper<UserMerchantPledgeTaskDetailsRecords> {


    /**
     * 根据用户质押记录id累计奖励
     * @param userId
     * @param userPledgeTaskRecordsId
     * @return
     */
    List<MerchantPledgeCollectionRewardsVO> getListByUserRecordsId(@Param("userId") Long userId, @Param("userPledgeTaskRecordsId")Long userPledgeTaskRecordsId);

    /**
     * 收益记录详情
     * @param userId
     * @param userPledgeTaskIcomeRecordsId
     * @return
     */
    List<MerchantPledgeCollectionRewardsVO> incomeRecordDetails(@Param("userId") Long userId, @Param("userPledgeTaskIcomeRecordsId") Long userPledgeTaskIcomeRecordsId);

}
